

#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
int main()
{
	int n = -1;
	int count = 0;
	while (n)
	{
		count++;
		n= n & (n - 1);
	}
	printf("%d",count);
	return 0;
}